package com.xinqi.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinqi.dto.Result;
import com.xinqi.entity.Blog;
import com.xinqi.entity.User;
import com.xinqi.mapper.UserMapper;
import com.xinqi.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xin麒
 * @date 2023/6/25 15:17
 */
@Service
@Slf4j
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public List<User> getPageByLimitationsAndPages(Page<User> pageParam) {
        Page<User> userPage = baseMapper.selectPage(pageParam,null);
        return userPage.getRecords();
    }
}
